package day0114;

public class Test8 {
    public static void main(String[] args) {
        int[] a={1,2,3,4,5,6,7,8,9,10};
        del(a,3);
    }

    private static void del(int[] a,int index) {
        //1.从index+1个元素依次往前赋值
        a[3]=a[4];
        //2.copyOf（a, a.length-1）

    }
}
